import Vue from 'vue'
import Router from 'vue-router'

// 引入tabBar路由组件
import homeContainer from '../components/tabBar/homeContainer.vue'
import memberContainer from '../components/tabBar/memberContainer.vue'
import shopcarContainer from '../components/tabBar/shopcarContainer.vue'
import searchContainer from '../components/tabBar/searchContainer.vue'
import newList from '../components/news/newsList.vue'

Vue.use(Router)

export default new Router({
  routes: [
    {path:'/',redirect:'/home'},
    {path:'/home',component:homeContainer},
    {path:'/member',component:memberContainer},
    {path:'/shopcar',component:shopcarContainer},
    {path:'/search',component:searchContainer},
    {path:'/home/newList',component:newList},
  ],
  // 设置路由高亮
  linkActiveClass:'mui-active'
})
